<template>
	<a-modal :visible="props.visible" centered title="退租" @cancel="handleOk">
		<p v-if="props.accessShow">门禁离线，待门禁在线后同步信息</p>
		<p v-if="props.lockShow">门锁离线，待门锁在线后在智能门锁-授权信息中修改</p>
		<template #footer>
			<a-button type="primary" @click="handleOk">确定</a-button>
		</template>
	</a-modal>
</template>
<script setup lang="ts">
	const props = defineProps({
		visible: {
			type: Boolean,
			required: false
		},
		accessShow: {
			type: Boolean,
			efault: false
		},
		lockShow: {
			type: Boolean,
			default: false
		}
	})
	const emit = defineEmits(['update:visible', 'success'])
	const handleOk = () => {
		emit('success')
		emit('update:visible', false)
	}
</script>
